package org.example;

public class Note {
    private double frequency; // 音符频率
    private double duration;  // 时值（单位：秒或拍子）
    private double volume;    // 音量（范围：0.0 到 1.0）
    private double gapDuration; // 停顿时长（单位：秒）

    public Note(double frequency, double duration, double volume, double gapDuration) {
        this.frequency = frequency;
        this.duration = duration;
        this.volume = volume;
        this.gapDuration = gapDuration;
    }

    public double getFrequency() {
        return frequency;
    }

    public double getDuration() {
        return duration;
    }

    public double getVolume() {
        return volume;
    }

    public double getGapDuration() {
        return gapDuration;
    }
}
